package com.dragon.design.principle.openclose;

/**
 * @author dragon
 * @version V1.0.0-RELEASE
 * @date 2019/5/15 11:09
 */
public class JavaDiscountCourse extends JavaCourse {

    public JavaDiscountCourse(Long id, String name, Double price) {
        super(id, name, price);
    }

    public Double getDiscountPrice() {
        return super.getPrice() * 0.8;
    }
}
